package com.lwd.entity;

public class Goods {
    private Integer gid;

    private String gname;

    private Double price;

    public Goods() {
    }

    public Goods(Integer gid, String gname, Double price, Integer storenum, String picture, Integer tid, String tname) {
        this.gid = gid;
        this.gname = gname;
        this.price = price;
        this.storenum = storenum;
        this.picture = picture;
        this.tid = tid;
        this.tname = tname;
    }

    @Override
	public String toString() {
		return "Goods [gid=" + gid + ", gname=" + gname + ", price=" + price + ", storenum=" + storenum + ", picture="
				+ picture + ", tid=" + tid + ", tname=" + tname + "]";
	}

	private Integer storenum;

    private String picture;

    private Integer tid;
    
    private String tname;

    public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname == null ? null : gname.trim();
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStorenum() {
        return storenum;
    }

    public void setStorenum(Integer storenum) {
        this.storenum = storenum;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture == null ? null : picture.trim();
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }
}